<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Detalhes</title>
</head>
<body>
<f:view>
<h2>Anúncio ${ principal.novoDetalhes.tituloAnuncio }
</h2>
	<h:panelGrid border="0" cellpadding="1" columns="3" style="background-color: #CCE0FF">
		<h:dataTable border="1" value="5" var="livro">
			<h:column id="column1">
				<f:facet name="header">
					<h:outputText value="Título"></h:outputText>
				</f:facet>
				<h:outputText value="#{principal.novoDetalhes.tituloAnuncio }"></h:outputText>
			</h:column>
			<h:column id="column2">
				<f:facet name="header">
					<h:outputText value="Nome Produto"></h:outputText>
				</f:facet>
				<h:outputText value="#{principal.novoDetalhes.nomeProduto }"></h:outputText>
			</h:column>
			<h:column id="column3">
				<f:facet name="header">
					<h:outputText value="Preço"></h:outputText>
				</f:facet>
				<h:outputText value="#{principal.novoDetalhes.preco }">
				<f:convertNumber pattern="#,##0.00" minFractionDigits="2"  />  
				</h:outputText>
			</h:column>
			<h:column id="column4">
				<f:facet name="header">
					<h:outputText value="Data"></h:outputText>
				</f:facet>
				<h:outputText value="#{principal.novoDetalhes.data }">
				<f:convertDateTime locale="pt,BR" dateStyle="long" pattern="dd/MM/yyyy" />  
				</h:outputText>
			</h:column>
			<h:column id="column5" >
				<f:facet name="header">
					<h:outputText value="Responsavel"></h:outputText>
				</f:facet>
				<h:outputText value="#{principal.novoDetalhes.responsavel }"></h:outputText>
			</h:column>
			<h:column id="column6">
				<f:facet name="header">
					<h:outputText value="Telefone"></h:outputText>
				</f:facet>
				<h:outputText value="#{principal.novoDetalhes.telefone }"></h:outputText>	
			</h:column>
			<h:column id="column7">
				<f:facet name="header">
					<h:outputText value="Resumo"></h:outputText>
				</f:facet>
				<h:outputText value="#{principal.novoDetalhes.resumo }"></h:outputText>	
			</h:column>
		</h:dataTable>
	</h:panelGrid>
	</f:view>
</body>
</html>